<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue';
import ArticleList from './components/ArticleList.vue'
import { ref } from 'vue';

const channelId = ref(0)
const changeChannel = (id: number) => {
    channelId.value = id
}

console.log("APP", channelId.value)
</script>

<template>
    <ChannelNav :channelId="channelId" @change-channel="channelId = $event"></ChannelNav>
    <ArticleList :channelId="channelId"></ArticleList>

    <router-view></router-view>
</template>
